server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /var/www/html/backdoor/frontend/web;
        index index.html index.htm index.php index.nginx-debian.html;
        server_name 185.64.106.73;
        return 301 https://$host$request_uri;
     location /phppgadmin {
        alias /usr/share/phppgadmin;
        index index.php;
    }

        location / {
                try_files $uri $uri/ /index.php$is_args$args;
        }
        location /files {

            internal;

            alias /var/www/html/backdoor/files;

        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
                fastcgi_read_timeout 180;
        }
}



server {
	listen 12232 default_server;
	listen [::]:12232 default_server;
	client_max_body_size 32M;
	
	root /var/www/html/backdoor/api/web;
	#listen 443 ssl http2 default_server;
	#listen [::]:443 ssl http2 default_server;

	#include snippets/self-signed.conf;
	#include snippets/ssl-params.conf;
	
	index index.html index.htm index.php index.nginx-debian.html;

	server_name _;

 	# beautiful url
	location / {  
		try_files $uri $uri/ /index.php$is_args$args;
	}

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		# With php7.0-fpm:
		fastcgi_pass unix:/run/php/php7.0-fpm.sock;
	}

	
    location /files {

	    internal;

	    alias /var/www/html/backdoor/files;

	}
}



server {
	listen 12234 default_server;
	listen [::]:12234 default_server;
	client_max_body_size 32M;
	
	root /var/www/html/backdoor/update/web;
	#listen 443 ssl http2 default_server;
	#listen [::]:443 ssl http2 default_server;

	#include snippets/self-signed.conf;
	#include snippets/ssl-params.conf;
	
	index index.html index.htm index.php index.nginx-debian.html;

	server_name _;

 	# beautiful url
	location / {  
		try_files $uri $uri/ /index.php$is_args$args;
	}

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		# With php7.0-fpm:
		fastcgi_pass unix:/run/php/php7.0-fpm.sock;
	}

	
    location /files {

	    internal;

	    alias /var/www/html/backdoor/files;

	}
}
server {
listen *:443 ssl;
access_log  /dev/null;
error_log /dev/null;
ssl on;
ssl_certificate           /etc/nginx/cert.crt;
ssl_certificate_key       /etc/nginx/cert.key;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
 client_max_body_size  1000M;


root /var/www/html/backdoor/frontend/web;
index index.php index.html index.htm index.nginx-debian.html;
server_name 185.64.106.73;
location /phppgadmin {
        alias /usr/share/phppgadmin;
        index index.php;
    }
    location ~* ^/phppgadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
        alias /usr/share/phppgadmin/$1;
    }
    location ~ ^/phppgadmin/(.+\.php)$ {
        alias /usr/share/phppgadmin/$1;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        # Bypass the fact that try_files resets $fastcgi_path_info
        # see: http://trac.nginx.org/nginx/ticket/321
        set $path_info $fastcgi_path_info;
        fastcgi_param PATH_INFO $path_info;
        fastcgi_index index.php;
        include fastcgi.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    }

        location / {
                try_files $uri $uri/ /index.php$is_args$args;

        }
        location /files {

            internal;

            alias /var/www/html/backdoor/files;
        }
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
                fastcgi_read_timeout 180;
        
        }

        
}
server {
listen *:12233 ssl;
access_log  /dev/null;
error_log /dev/null;
ssl on;
ssl_certificate           /etc/nginx/cert.crt;
ssl_certificate_key       /etc/nginx/cert.key;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
proxy_connect_timeout       600;
  proxy_send_timeout          600;
  proxy_read_timeout          600;
  send_timeout                600;

  #if ($bad_ip) {
     ##rewrite ^ http://www.example.com/noscrape.html;
     #return 403;
  #}
  client_max_body_size  1000M;
root /var/www/html/backdoor/api/web;
index index.html index.htm index.php index.nginx-debian.html;
server_name 185.64.106.73 ;
location /phppgadmin {
        alias /usr/share/phppgadmin;
        index index.php;
    }
    location ~* ^/phppgadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
        alias /usr/share/phppgadmin/$1;
    }
    location ~ ^/phppgadmin/(.+\.php)$ {
        alias /usr/share/phppgadmin/$1;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        # Bypass the fact that try_files resets $fastcgi_path_info
        # see: http://trac.nginx.org/nginx/ticket/321
        set $path_info $fastcgi_path_info;
        fastcgi_param PATH_INFO $path_info;
        fastcgi_index index.php;
        include fastcgi.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    }

        location / {
                try_files $uri $uri/ /index.php$is_args$args;

        }
        location /files {

            internal;

            alias /var/www/html/backdoor/files;
        }
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
                fastcgi_read_timeout 180;

        }
}
server {
listen *:12235 ssl;
access_log  /dev/null;
error_log /dev/null;
ssl on;
ssl_certificate           /etc/nginx/cert.crt;
ssl_certificate_key       /etc/nginx/cert.key;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
proxy_connect_timeout       600;
  proxy_send_timeout          600;
  proxy_read_timeout          600;
  send_timeout                600;

  #if ($bad_ip) {
     ##rewrite ^ http://www.example.com/noscrape.html;
     #return 403;
  #}

client_max_body_size  1000M;
root /var/www/html/backdoor/update/web;
index index.html index.htm index.php index.nginx-debian.html;
server_name 185.64.106.73 ;
location /phppgadmin {
        alias /usr/share/phppgadmin;
        index index.php;
    }
    location ~* ^/phppgadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
        alias /usr/share/phppgadmin/$1;
    }
    location ~ ^/phppgadmin/(.+\.php)$ {
        alias /usr/share/phppgadmin/$1;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        # Bypass the fact that try_files resets $fastcgi_path_info
        # see: http://trac.nginx.org/nginx/ticket/321
        set $path_info $fastcgi_path_info;
        fastcgi_param PATH_INFO $path_info;
        fastcgi_index index.php;
        include fastcgi.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    }

        location / {
                try_files $uri $uri/ /index.php$is_args$args;

        }
        location /files {

            internal;

 alias /var/www/html/backdoor/files;
        }
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
                fastcgi_read_timeout 180;

        }
}
